POV-Ray : Newsgroups : povray.general : Easy array question : Re: Easy array question Server Time
7 Aug 2024 13:17:00 EDT (-0400)
  Re: Easy array question  
From: Warp
Date: 10 Sep 2001 19:38:49
Message: <3b9d4f09@news.povray.org>
Reusser <reu### [at] chorusnet> wrote:
: I feel like I must be missing something.  Why does pov not like the
: last line?

  Because an array can have either floats or vectors, not both.

  The first value you put into the array defines the type of the elements.
So if you want vectors in there, you have to put <0,0,0> in there, not just 0.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.